package com.new4net.reactor;

import lombok.Data;

@Data
public class SimpleEvent<T> implements EventHolder {
    private String event;
    private T data;

    public static <R> SimpleEvent<R> of(String event,R data) {

        SimpleEvent<R> objectSimpleEvent = new SimpleEvent<>();
        objectSimpleEvent.setEvent(event);
        objectSimpleEvent.setData(data);
        return objectSimpleEvent;
    }
}
